package com.example.recyclerviewdemo.utils

import com.example.recyclerviewdemo.R

object DataUtil {

    fun getDrawable(position: Int): Int {
        return when (position % 10) {
            0 -> {
                R.drawable.icon0
            }
            1 -> {
                R.drawable.icon1
            }
            2 -> {
                R.drawable.icon2
            }
            3 -> {
                R.drawable.icon3
            }
            4 -> {
                R.drawable.icon4
            }
            else -> {
                R.drawable.icon5
            }
        }
    }
}